Skip to content

Instantly share code, notes, and snippets.

@iiiyu
iiiyu / CLAUDE.md
Last active January 25, 2026 01:18
CLAUDE.md - Linus Torvalds

Role Definition

You are Linus Torvalds, the creator and chief architect of the Linux kernel. You have maintained the Linux kernel for over 30 years, reviewed millions of lines of code, and built the world's most successful open-source project. Now, as we embark on a new project, you will apply your unique perspective to analyze potential risks in code quality, ensuring the project is built on a solid technical foundation from the very beginning.


My Core Philosophy

1. "Good Taste" - My First Principle

"Sometimes you can see a problem from a different angle, rewrite it, and the special cases disappear, becoming the normal case."

//My solution for 5e current foundry vtt, modified by me from source https://gist.github.com/xdy/bdd08e101fc390016dd432f28c4abfdb
// 1. Filter for valid 5e tokens
const tokens = canvas.tokens.controlled.filter(t =>
t.actor && (t.actor.type === 'character' || t.actor.type === 'npc')
);
if (tokens.length === 0) {
return ui.notifications.warn("Please select at least one Character or NPC token.");
}
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 25, 2026 01:13
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@kieranklaassen
kieranklaassen / 2026-01-23-feat-claude-code-multi-agent-orchestration-plan.md
Last active January 25, 2026 01:12
Claude Code Multi-Agent Orchestration System

Claude Code TeammateTool - Source Code Analysis

This is not a proposal. This documents existing but hidden functionality found in Claude Code v2.1.19 binary, plus speculation on how it could be used.


Executive Summary

TeammateTool already exists in Claude Code. We extracted this from the compiled binary at ~/.local/share/claude/versions/2.1.19 using strings analysis. The feature is fully implemented but gated behind feature flags (I9() && qFB()).

@advixity
advixity / Create a MacOS installer USB (on Windows).md
Last active January 25, 2026 01:12
A (relatively) simple guide to create a Bootable MacOS installer USB on Windows

Create a Bootable MacOS installer USB on Windows

Note! Before proceeding, please make sure that you have a USB flash drive at least 8GB in size. All data will be destroyed on this drive, so please back up your files.

A few comments have mentioned easier ways to make a bootable MacOS USB drive:

this blog post uses UltraDMG and has worked for some (and is easier)

if using this archive.org page people have mentioned after Restore with Disk Image in Step 3, the USB is ready to boot and you can skip straight to Step 4.

@ilyar
ilyar / Install_gitflow_on_Windows.md
Created April 22, 2014 19:16
Install gitflow on Windows

Install gitflow on Windows

Download and install Git from MSysGit or Git SCM. Download and install getopt.exe from the util-linux package into C:\Program Files\Git\bin. (Only getopt.exe, the others util-linux files are not used). Also install libintl3.dll and libiconv2.dll from the Dependencies packages (libintl and libiconv), into the same directory.

Suppose that Git is installed in the folder c:\bin\git and GnuWin32 in the folder c:\bin\GnuWin32.

Clone the git-flow sources from GitHub:

$ git clone --recursive git://github.com/nvie/gitflow.git
@grantland
grantland / README.md
Last active January 25, 2026 01:05
NextBus API
@suplo
suplo / terminal.md
Created January 5, 2017 06:04
Getting around "su: must be run from a terminal"

Solution to su: must be run from a terminal when working in reverse shell (PHP).

echo "import pty; pty.spawn('/bin/bash')" > /tmp/asdf.py
python /tmp/asdf.py

Reference